<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="jquery.tableexport.js" charset="utf-8"></script>
<script type="text/javascript" src="mybase64.js" charset="utf-8"></script>

<script type="text/javascript">
	$(function(){
		$('#downLoadBtn').click(function(){
		    $('#jsonTable').tableExport({
		        type:'excel',
		        separator:';',
		        escape:'false'
		    });
		});
	});
</script>
</head>
<body>
	<input id="downLoadBtn" type="button" value="下载"/>
	<table id="jsonTable">
		<tbody>
			<tr>
				<th>姓名</th>
				<th>年龄</th>
			</tr>
			<tr>
				<td>张三</td>
				<td>28</td>
			</tr>
			<tr>
				<td>李四</td>
				<td>30</td>
			</tr>
		</tbody>
	</table>
</body>
</html>